﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework_Tool
{
    public class MultipleChoiceQuestion
    {
        private List<String> correctAnswers = new List<string>();
        private List<String> wrongAnswers = new List<string>();
        public List<String> allAnswers = new List<string>();
        public String question { get; set; }

        public MultipleChoiceQuestion(List<String> correctAnswers, List<String> wrongAnswers, String question)
        {
            this.correctAnswers = correctAnswers;
            this.wrongAnswers = wrongAnswers;
            this.question = question;
        }

        public MultipleChoiceQuestion()
        {
            this.correctAnswers = new List<string>();
            this.wrongAnswers = new List<string>();
            this.question = "";
        }

        public void addCorrectAnswer(String correctAnswer)
        {
            this.correctAnswers.Add(correctAnswer);
            this.allAnswers.Add(correctAnswer);
        }

        public void addWrongAnswer(String wrongAnswer)
        {
            this.wrongAnswers.Add(wrongAnswer);
            this.allAnswers.Add(wrongAnswer);
        }

        public List<String> CorrectAnswers
        {
            get { return correctAnswers; }
            set { correctAnswers = value; }
        }
        public List<String> WrongAnswers
        {
            get { return wrongAnswers; }
            set { wrongAnswers = value; }
        }
    }
}
